package com.estebansm.apercuen.bean;

import com.estebansm.apercuen.common.ADFUtil;

import java.io.Console;

public class ShoppingBean {
    public ShoppingBean() {
        super();
    }
    public void clearCategorias(){
        ADFUtil.setEL("","#{pageFlowScope.SubCategoryId}");
    }
    public void refreshCategory(CategoriaBean category) {
        
        ADFUtil.setEL("#{requestScope.CategoryId}",category.getCategoryId());
        ADFUtil.setEL("#{requestScope.SubCategoryId}",category.getSubCategoryId());
        ADFUtil.setEL("#{requestScope.CategoryName}",category.getCategoryName());
        ADFUtil.setEL("#{requestScope.SubCategoryName}",category.getSubCategoryName());
        ADFUtil.setEL("#{requestScope.refreshLocalArea}",Boolean.TRUE);
        System.out.println("refreshCategory : "+category.getCategoryName()+": "+category.getCategoryId() +"-"+category.getSubCategoryName()+":"+category.getSubCategoryId());
        System.out.println(ADFUtil.evaluateEL("#{requestScope.refreshLocalArea}"));
    } 
}